package com.lam.dormitory.common.quartz;

import com.lam.dormitory.util.TencentCosUtil;
import org.quartz.*;
import org.springframework.stereotype.Component;

@PersistJobDataAfterExecution
@DisallowConcurrentExecution
@Component
public class JobTwo implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException{
        TencentCosUtil.downLoadFile();
        System.out.println("下载成功");
    }
}